﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Manager.Master" AutoEventWireup="true" CodeBehind="TeamsManager.aspx.cs" Inherits="Bilyteam_Website.Admin.TeamsManager" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <link rel="stylesheet" href="CSS/style.css" type="text/css" />
    <div class="provices">
        <p>
            <label>Team Name</label>
            <td>
                
                <asp:TextBox ID="txtteamname" runat="server"></asp:TextBox>
            </td>
        </p>
        <p>
            <label>  Team email</label>
            <td>
                <asp:TextBox ID="txtteamemail" runat="server"></asp:TextBox>
            </td>
        </p>
        <p>
           <label>Total Email</label>
            <td>
                <asp:TextBox ID="txttotalemail" runat="server"></asp:TextBox>
            </td>
        </p>
        <p>
            <asp:Button ID="btnadd" runat="server" Text="Add" CssClass="blue" onclick="btnadd_Click"  />
        </p>
    </div>
    <asp:DataList ID="dtlteams" runat="server" oneditcommand="dtlteams_Edit" 
            ondeletecommand="dtlteams_Delete" DataKeyField="TeamsID">
        <HeaderTemplate>
            <table class="viewTables">
            
                    <th>
                        Edit
                    </th>
                    <th>
                        Delete
                    </th>
                   <th>
                        ID
                   </th>
                  <th>
                       Name
                  </th>
                    <th>
                         Email
                    </th>
                    <th>
                        Totalemail
                    </th>
                   
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:LinkButton ID="lbnedit" runat="server" CommandName="Edit">Edit</asp:LinkButton>
                </td>
                <td>
                    
                    <asp:LinkButton ID="lbtdeleted" runat="server" CommandName="Delete">Deleted</asp:LinkButton>
                </td>
                <td>
                    <asp:Label ID="lblID" runat="server" Text='<%# Eval("TeamsID") %>'></asp:Label>
                </td>
                <td>
                    <%#Eval("TeamName")%>
                </td>
                <td>
                    <%#Eval("TeamEmail")%>
                </td>
                <td>
                    <%#Eval("TotalEmail")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:DataList>
   
</asp:Content>
